package org.qiuqiu.vo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ReplysecondExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ReplysecondExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReplysecondidIsNull() {
            addCriterion("replysecondid is null");
            return (Criteria) this;
        }

        public Criteria andReplysecondidIsNotNull() {
            addCriterion("replysecondid is not null");
            return (Criteria) this;
        }

        public Criteria andReplysecondidEqualTo(Integer value) {
            addCriterion("replysecondid =", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidNotEqualTo(Integer value) {
            addCriterion("replysecondid <>", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidGreaterThan(Integer value) {
            addCriterion("replysecondid >", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidGreaterThanOrEqualTo(Integer value) {
            addCriterion("replysecondid >=", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidLessThan(Integer value) {
            addCriterion("replysecondid <", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidLessThanOrEqualTo(Integer value) {
            addCriterion("replysecondid <=", value, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidIn(List<Integer> values) {
            addCriterion("replysecondid in", values, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidNotIn(List<Integer> values) {
            addCriterion("replysecondid not in", values, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidBetween(Integer value1, Integer value2) {
            addCriterion("replysecondid between", value1, value2, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplysecondidNotBetween(Integer value1, Integer value2) {
            addCriterion("replysecondid not between", value1, value2, "replysecondid");
            return (Criteria) this;
        }

        public Criteria andReplyidIsNull() {
            addCriterion("replyid is null");
            return (Criteria) this;
        }

        public Criteria andReplyidIsNotNull() {
            addCriterion("replyid is not null");
            return (Criteria) this;
        }

        public Criteria andReplyidEqualTo(Integer value) {
            addCriterion("replyid =", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotEqualTo(Integer value) {
            addCriterion("replyid <>", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidGreaterThan(Integer value) {
            addCriterion("replyid >", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("replyid >=", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidLessThan(Integer value) {
            addCriterion("replyid <", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidLessThanOrEqualTo(Integer value) {
            addCriterion("replyid <=", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidIn(List<Integer> values) {
            addCriterion("replyid in", values, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotIn(List<Integer> values) {
            addCriterion("replyid not in", values, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidBetween(Integer value1, Integer value2) {
            addCriterion("replyid between", value1, value2, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotBetween(Integer value1, Integer value2) {
            addCriterion("replyid not between", value1, value2, "replyid");
            return (Criteria) this;
        }

        public Criteria andPostidIsNull() {
            addCriterion("postid is null");
            return (Criteria) this;
        }

        public Criteria andPostidIsNotNull() {
            addCriterion("postid is not null");
            return (Criteria) this;
        }

        public Criteria andPostidEqualTo(Integer value) {
            addCriterion("postid =", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidNotEqualTo(Integer value) {
            addCriterion("postid <>", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidGreaterThan(Integer value) {
            addCriterion("postid >", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidGreaterThanOrEqualTo(Integer value) {
            addCriterion("postid >=", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidLessThan(Integer value) {
            addCriterion("postid <", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidLessThanOrEqualTo(Integer value) {
            addCriterion("postid <=", value, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidIn(List<Integer> values) {
            addCriterion("postid in", values, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidNotIn(List<Integer> values) {
            addCriterion("postid not in", values, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidBetween(Integer value1, Integer value2) {
            addCriterion("postid between", value1, value2, "postid");
            return (Criteria) this;
        }

        public Criteria andPostidNotBetween(Integer value1, Integer value2) {
            addCriterion("postid not between", value1, value2, "postid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameIsNull() {
            addCriterion("reply_username is null");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameIsNotNull() {
            addCriterion("reply_username is not null");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameEqualTo(String value) {
            addCriterion("reply_username =", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameNotEqualTo(String value) {
            addCriterion("reply_username <>", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameGreaterThan(String value) {
            addCriterion("reply_username >", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("reply_username >=", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameLessThan(String value) {
            addCriterion("reply_username <", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameLessThanOrEqualTo(String value) {
            addCriterion("reply_username <=", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameLike(String value) {
            addCriterion("reply_username like", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameNotLike(String value) {
            addCriterion("reply_username not like", value, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameIn(List<String> values) {
            addCriterion("reply_username in", values, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameNotIn(List<String> values) {
            addCriterion("reply_username not in", values, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameBetween(String value1, String value2) {
            addCriterion("reply_username between", value1, value2, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyUsernameNotBetween(String value1, String value2) {
            addCriterion("reply_username not between", value1, value2, "replyUsername");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeIsNull() {
            addCriterion("reply_createTime is null");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeIsNotNull() {
            addCriterion("reply_createTime is not null");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeEqualTo(Date value) {
            addCriterion("reply_createTime =", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeNotEqualTo(Date value) {
            addCriterion("reply_createTime <>", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeGreaterThan(Date value) {
            addCriterion("reply_createTime >", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("reply_createTime >=", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeLessThan(Date value) {
            addCriterion("reply_createTime <", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("reply_createTime <=", value, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeIn(List<Date> values) {
            addCriterion("reply_createTime in", values, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeNotIn(List<Date> values) {
            addCriterion("reply_createTime not in", values, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeBetween(Date value1, Date value2) {
            addCriterion("reply_createTime between", value1, value2, "replyCreatetime");
            return (Criteria) this;
        }

        public Criteria andReplyCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("reply_createTime not between", value1, value2, "replyCreatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}